package com.legal.enums;

/**
 * 验证码相关的枚举信息
 * @author xiaopeng
 * @version 1.0
 */
public enum CaptchaExceptionMsgEnums {
    // 验证码相关错误
    CAPTCHA_INVALID(412, "无效的验证码！"),
    CAPTCHA_REQUEST_TOO_FREQUENT(415, "操作过于频繁，请稍后再试"),
    CAPTCHA_DEVICE_LIMIT_EXCEEDED(416, "该设备获取验证码次数过多，请稍后再试！"),
    CAPTCHA_PHONE_LIMIT_EXCEEDED(417, "该手机号获取验证码次数过多，请稍后再试！");

    private Integer code;
    private String msg;

    CaptchaExceptionMsgEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
